﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="P7.aspx.cs" Inherits="ConsolidationTool.WebParts.Layouts.CReport.Brochure.P7"
    DynamicMasterPageFile="~masterurl/default.master" %>

<%@ Register TagName="EntitySelector" TagPrefix="RE" Src="~/_controltemplates/ConsolidationTool.WebParts/CommonEntitySelector.ascx" %>
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div class="fs-webpart-top">
        <RE:EntitySelector ID="commonEntitySelector" runat="server" />
    </div>
    <br />
    <asp:Button ID="GenerateReport" runat="server" Text="Generate Report" OnClick="GenerateReport_Click" />
    <asp:Button ID="ExportReport" runat="server" Text="Export Report" OnClick="ExportReport_Click" />
    <br />
    <br />
    <table class="commontable">
        <tr>
            <td align="center" colspan="13">
                <span class="fs-display-title" style="font-weight: 700">C - VARIABLE MARGINS ANALYSIS
                </span>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="center" colspan="5">
                <span class="fs-display-title" style="font-weight: 700">
                    <asp:Label ID="lbCM" runat="server" Text=""></asp:Label></span>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td align="center" colspan="5">
                <span class="fs-display-title" style="font-weight: 700">
                    <asp:Label ID="lbYTD" runat="server" Text=""></asp:Label></span>
            </td>
        </tr>
        <tr>
            <td align="center">
            </td>
            <td class="deepgreen" align="center">
                N-1
            </td>
            <td class="yellow" align="center">
                BUDGET
            </td>
            <td class="deepgreen" align="center">
                ACTUAL
            </td>
            <td class="yellow" align="center">
                A/BUD
            </td>
            <td class="deepgreen" align="center">
                A/N-1
            </td>
            <td>
            </td>
            <td>
            </td>
            <td class="deepgreen" align="center">
                N-1
            </td>
            <td class="yellow" align="center">
                BUDGET
            </td>
            <td class="deepgreen" align="center">
                ACTUAL
            </td>
            <td class="yellow" align="center">
                A/BUD
            </td>
            <td class="deepgreen" align="center">
                A/N-1
            </td>
        </tr>
         <asp:Repeater ID="EQRepeater" runat="server">
            <ItemTemplate>
            
            <tr>
                <td>
                    <%# Eval("title")%></td>

         
                    <asp:Repeater ID="RPValue" runat="server">
                        <ItemTemplate>
                            <td>
                            <%# GetDataItem()%>
                            </td>
                        </ItemTemplate>
                    </asp:Repeater>
            </tr>

            </ItemTemplate>
        </asp:Repeater>
         
      <%--  <asp:Repeater ID="EQRepeater" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Eval("title") %>
                    </td>
                    <td class="deepgreen" align="center">
                        <%# Eval("M_N_1")%>
                    </td>
                    <td class="yellow" align="center">
                        <%# Eval("M_Budget")%>
                    </td>
                    <td class="deepgreen" align="center">
                        <%# Eval("M_Actual")%>
                    </td>
                    <td class="yellow" align="center">
                        <%# Eval("M_A_BUD")%>
                    </td>
                    <td class="deepgreen" align="center">
                        <%# Eval("M_A_N_1")%>
                    </td>
                    <td>
                    </td>
                    <td class="deepgreen" align="center">
                        <%# Eval("YTD_N_1")%>
                    </td>
                    <td class="yellow" align="center">
                        <%# Eval("YTD_Budget")%>
                    </td>
                    <td class="deepgreen" align="center">
                        <%# Eval("YTD_Actual")%>
                    </td>
                    <td class="yellow" align="center">
                        <%# Eval("YTD_A_BUD")%>
                    </td>
                    <td class="deepgreen" align="center">
                        <%# Eval("YTD_A_N_1")%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>--%>
    </table>
    <br />
    <table class="commontable">
        <tr>
            <td align="center">
                IN 
                <asp:Literal Text="" ID="lbFSCurrency1" runat="server" />
            </td>
            <td colspan="3" class="yellow" align="center">
                Budget
            </td>
            <td colspan="3" class="deepgreen" align="center">
                Budget
            </td>
            <td>
            </td>
            <td align="center">
                IN
                <asp:Literal Text="" ID="lbFSCurrency2" runat="server" />
            </td>
            <td>
            </td>
            <td colspan="3" class="yellow" align="center">
                N-1
            </td>
            <td colspan="3" class="deepgreen" align="center">
                N-1
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="yellow" align="center">
                Market area
            </td>
            <td class="yellow" align="center">
                export
            </td>
            <td class="yellow" align="center">
                Total
            </td>
            <td class="deepgreen" align="center">
                Market area
            </td>
            <td class="deepgreen" align="center">
                export
            </td>
            <td class="deepgreen" align="center">
                Total
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td class="yellow" align="center">
                Market area
            </td>
            <td class="yellow" align="center">
                export
            </td>
            <td class="yellow" align="center">
                Total
            </td>
            <td class="deepgreen" align="center">
                Market area
            </td>
            <td class="deepgreen" align="center">
                export
            </td>
            <td class="deepgreen" align="center">
                Total
            </td>
        </tr>
        <asp:Repeater ID="FreeRepeater" runat="server">
            <ItemTemplate>
                <tr>
                    <td> 
                        <%# Eval("title") %>
                    </td>
                    <asp:Repeater ID="RPValue" runat="server">
                        <ItemTemplate>
                            <td>
                            <%# GetDataItem()%>
                            </td>
                        </ItemTemplate>
                    </asp:Repeater>
                </tr>  
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    P7
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    P7
</asp:Content>
